package com.googlecode.yatspec.junit;

import java.lang.reflect.Type;

public class RoutableArgumentCoercer implements ArgumentCoercer{
    private ArgumentCoercer delegate;

    public RoutableArgumentCoercer(ArgumentCoercer delegate) {
        this.delegate = delegate;
    }

    @Override
    public Object get(Type type, String value) throws Exception {
        return delegate.get(type, value);
    }

    public void setDelegate(ArgumentCoercer delegate) {
        this.delegate = delegate;
    }
}
